Php checks the usage instance of the date function checkdate and the checkdate instance. Php checks the checkdate usage instance of the date function. the checkdate instance in this document describes the php checkdate usage of the date function.
PHP Check Date function checkdate Usage instance, checkdate instance
This example describes the PHP check date function checkdate usage. Share to everyone for your reference. The specific analysis is as follows:
You can use the Checkdate function
Php checks the usage of the date function checkdate instance
This article mainly introduces the usage of the date function checkdate in php, and analyzes the usage skills of the checkdate function in php, which is very useful. For more information,
We all know that there are 12 months in a year, one months have 31 days (or 30 days, February has 28 days, leap year February has 29 days), one weeks have 7 days, 24 hours a day ... Wait a minute. But our computer does not know Ah, it is not able to
This article describes the PHP check date function checkdate usage. Share to everyone for your reference. The specific analysis is as follows:
PHP can use the Checkdate function to verify the correctness of the date.
Grammar
Integer checkdate
Checkdate verifies a greaguri date. Checkdate (PHP4, PHP5) checkdate is used to verify the description of a greaguri date boolcheckdate (int $ month, int $ day, int $ year). If the given date is valid, TRUE is returned. otherwise, FALSE is returned.
Example of using php to check the date function checkdate
Syntax Integer checkdate (int % Month, int $ Day, int $ Year ); Demo code
Echo "2/29/1900 ";
Checkdate (2, 29,190 0 )? Print "is Valid": print "is not
This article mainly introduces the usage of the date function checkdate in php, and analyzes the usage skills of the checkdate function in php, which is very useful. For more information, see
This article mainly introduces the usage of the date
PHP checkdate () date judgment function example tutorialDefinition and usageThis checkdate () function returns true, except false if it is valid on the specified date.The date is valid. If:1 to 12 inclusive every monthThe number of days allowed in a
This article mainly introduces the usage of the date function checkdate in php, and analyzes the usage skills of the checkdate function in php, which is very useful, for more information about how to use the php checkdate function, see the example
This article mainly introduces the PHP check date function checkdate Usage, example analysis of PHP checkdate function of the use of skills, very practical value, the need for friends can refer to the next
This example describes the PHP check date
This article mainly introduces the usage of the date function checkdate in php, and analyzes the usage skills of the checkdate function in php, which is very useful, for more information about how to use the php checkdate function, see the example
checkdate ($month, $date, $year)
If the applied value constitutes a valid date, the function returns to true. For example, for the error date February 31, 2005, this function returns FALSE.
Use this function to check the date and make the date
Definitions and usageThe Checkdate () function verifies a Gregorian high date.
If the specified value is valid, the function returns True, otherwise it returns false.
The date is legal in the following cases:
Month between and including 1-12The
checkdate ($month, $date, $year)If the value that is applied constitutes a valid date, the function returns True. For example, for an error date of February 31, 2005, this function returns to False.You can use this function to check the date and
The validity of the PHP validation date has a built-in function, the Checkdate function, which shares the definition and usage of the checkdate function.
Checkdate Definition and usage
The Checkdate () function validates a trellis-high-date. If the
Introduction to mockito
Mockito is a unit test framework that requires JUnit support. Many dependencies exist in our projects. When we test a service-related interface or method, in most cases, there is no way or it is difficult to add all the
Php checks whether it is a valid time format regular. The following summarizes several methods of verifying whether the date entered by the user is correct using php. if you need it, refer to it. The checkdate () function verifies a greaguri date.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.